/**
 * 文本框输入提示内容显示
 */
(function ($) {
    $.fn.inputxt = function (options) {
        var settings = {txt:'请输入内容'};
        if (options) {
            $.extend(settings, options);
        }
        var self = this;
        $(self).val(settings.txt);
        $(self).focus(function () {
            if ($(self).val() == settings.txt) {
                $(self).val("");
            }
        });
        $(self).blur(function () {
            if ($(self).val() == "") {
                $(self).val(settings.txt);
            }
        });
    }
}(jQuery));